const mongoose = require('mongoose');
const { ObjectId } = mongoose.Schema;

/**
 * Export model definition object.
 */
module.exports = {
  versionId: { type: ObjectId, index: true },
  fileId: ObjectId,
  entryFunctionId: ObjectId,
  functionId: { type: ObjectId, index: true },
  testcaseId: { type: ObjectId, index: true },
  line: Number,
  times: Number,
  exit: Boolean,
  params: [String],
  global: [String],
  statics: [String],
  malloc: [String],
  local: [String],
  expandedVariables: Object,
  code: String,
};
